﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ModelLayer;

// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IUserCtrl" in both code and config file together.
[ServiceContract]
public interface IUserCtrl
{
	[OperationContract]
	int addUser(string name, string email, string password);

	[OperationContract]
	bool removeUser(int id);

	[OperationContract]
	bool updateUser(int id, string name, string email, string password);

	[OperationContract]
	User getUser(int id);

	[OperationContract]
	User[] getUsers();
}
